package com.chuantou.yuba.api.to;

import com.google.gson.annotations.SerializedName;

public class OtherUserTO extends UserTO {
	// 是否已经关注
	@SerializedName("followed")
	private int followed;
	// 是否拉黑
	@SerializedName("blocked")
	private int blocked;
	// 是否被对方拉黑
	@SerializedName("blockedby")
	private int blockedBy;

	public int getFollowed() {
		return followed;
	}

	public void setFollowed(int followed) {
		this.followed = followed;
	}

	public void setFollowed(boolean followed) {
		this.followed = followed ? 1 : 0;
	}

	public boolean isFollowed() {
		return followed == 1;
	}

	public int getBlocked() {
		return blocked;
	}

	public void setBlocked(int blocked) {
		this.blocked = blocked;
	}

	public void setBlocked(boolean blocked) {
		this.blocked = blocked ? 1 : 0;
	}

	public boolean isBlocked() {
		return blocked == 1;
	}

	public boolean isBlockedBy() {
		return blockedBy == 1;
	}

	public int getBlockedBy() {
		return blockedBy;
	}

	public void setBlockedBy(int blockedBy) {
		this.blockedBy = blockedBy;
	}

}
